package com.tensquare.base.service.impl;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.tensquare.base.domain.Label;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * ------------------------------
 * 功能：自定义实现资源熔断保护
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/9/4-17:42
 * ------------------------------
 */
@Slf4j
public class MyBlockHandler {
    public static List<Label> blockHandler(Label label,BlockException e) {
        log.error("开始熔断[MyBlockHandler--->blockHandler]：{}",e);
        return null;
    }
}
